/**
 * Created by Administrator on 2016/11/30.
 */
define(['dojo/_base/declare', 'js/layer/Base'], function(declare, Base) {
    return declare('js/layer/CityBorder', Base, {
        createLayer: function() {
            var layer = new ol.layer.Vector({
                source: new ol.source.Vector({
                    features: (new ol.format.GeoJSON()).readFeatures([])
                })
            });
            return layer;
        },
        initFeatures: function(data) {
            this.getSource().addFeatures((new ol.format.GeoJSON()).readFeatures(data));
        }
    });
});